package com.ruoyi.project.socket.utils;

import io.netty.channel.Channel;

public class ChannelUtil {

    public static boolean checkChannel(Channel ctx){
        if(null==ctx||!ctx.isOpen()||!ctx.isActive()){
            return false;
        }
        return true;
    }

}
